<div class="dux-tools">
  <div class="bread-head">栏目管理 <span class="small">管理网站全部栏目</span> </div>
  <br>
  <div class="tools-function clearfix">
    <div class="float-left"> <a class="button button-small bg-main icon-list" href="{$return_list}"> 栏目列表</a> </div>
  </div>
</div>
<div class="admin-main">
  <form method="post" class="form-x dux-form form-auto" id="form" action="__URL__/{$action}_save/time-<?php echo time(); ?>-ajax-true">
    <div class="panel dux-box  active">
      <div class="panel-head"> <strong>{$action_name}跳转页面</strong> </div>
      <div class="panel-body">
        <div class="form-group">
          <div class="label">
            <label>上级栏目</label>
          </div>
          <div class="field">
             <select name="pid" id="pid" class="input">
            <option value="0">=====顶级栏目=====</option>
            <!--foreach:{$category_list $vo}-->
            <option <!--if:{$vo['cid']==$info['pid']}-->selected="selected"<!--{/if}--> <!--if:{$vo['cid']==$id}-->selected="selected"<!--{/if}--> value="{$vo.cid}">{$vo.cname}</option>
            <!--{/foreach}-->
        </select>
            <div class="input-note">分类上级栏目</div>
          </div>
        </div>
        <div class="form-group">
          <div class="label">
            <label>跳转页面名称</label>
          </div>
          <div class="field">
            <input name="name" type="text" size="60" class="input" id="name" value="{$info.name}" reg="\S" msg="栏目名称不能为空" />
            <div class="input-note"></div>
          </div>
        </div>
        <div class="form-group">
          <div class="label">
            <label>SEO标题</label>
          </div>
          <div class="field">
            <input name="subname" type="text" size="60" class="input" id="subname" value="{$info.subname}" />
          </div>
        </div>
        <div class="form-group">
          <div class="label">
            <label>栏目URL优化</label>
          </div>
          <div class="field">
           <input name="urlname" type="text" class="input" id="urlname" value="{$info.urlname}" />
          </div>
        </div>
        <div class="form-group">
          <div class="label">
            <label>栏目形象图</label>
          </div>
          <div class="field">
           <?php echo module('editor')->get_image_upload('image1','image') ?>
          <input name="image" type="text" class="input" id="image" style="width:205px; float:left" value="{$info.image}"/> 
          &nbsp;&nbsp;<input type="button" id="image1" class="button_small" value="选择图片" />
          </div>
        </div>
        <div class="form-group">
          <div class="label">
            <label>跳转到</label>
          </div>
          <div class="field">
            <input name="url" type="text" class="input" size="60" id="url" value="{$jump_info.url}" />
            <div class="input_note">URL链接，支持标签</div>
          </div>
        </div>
        <div class="form-group">
          <div class="label">
            <label>排序</label>
          </div>
          <div class="field">
            <input name="sequence" type="text" class="input" id="sequence" value="{$info.sequence isset="0"}" />
          <div class="input-note">数字越大越在前面</div></div>
          
        </div>
        <!--hook-->
        <?php module('common')->plus_hook('category','edit_tpl',$info);  ?>
      <!--hook end-->
      
      </div>
      <?php if(model('user_group')->model_power('category','add')||model('user_group')->model_power('category','edit')){ ?>
      <div class="panel-foot">
        <div class="form-button">
          <div id="tips"></div>
            <input name="file_id" id="file_id" type="hidden" value="{$file_id}" />
            <input name="cid" type="hidden" value="{$info.cid}" />
          <button class="button bg-main" type="submit">保存</button>
          <button class="button bg" type="reset">重置</button>
        </div>
      </div>
    <?php } ?>
</div>
  </form>
{include file="category/common"}
</div>